org.eclipse.vtp.desktop.projects.core.actions
Class CreateGrammarFileActionFilter

java.lang.Object
  extended by org.eclipse.vtp.desktop.projects.core.actions.CreateGrammarFileActionFilter
All Implemented Interfaces:
IProvisioningActionItemFilter

public class CreateGrammarFileActionFilter
extends java.lang.Object
implements IProvisioningActionItemFilter

Identifies whether or not the CreateMediaFolderAction is applicable to the current model selection. If the selection is either a Media File or a Media Container element the action will be present and enabled. Otherwise, the action will not be disabled and not be visible.

Version:
1.0
Author:
Trip

Constructor Summary
CreateGrammarFileActionFilter()
          Create a new CreateMediaFolderActionFilter instance with default values.
 
Method Summary
 int appliesTo(IProvisioningModelSelection selection)
          Determines the visiblity state of the associated action item based on the given user selection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateGrammarFileActionFilter

public CreateGrammarFileActionFilter()
Create a new CreateMediaFolderActionFilter instance with default values.

Method Detail

appliesTo

public int appliesTo(IProvisioningModelSelection selection)
Description copied from interface: IProvisioningActionItemFilter
Determines the visiblity state of the associated action item based on the given user selection.

Specified by:
appliesTo in interface IProvisioningActionItemFilter
Parameters:
selection - The user selection
Returns:
The visibility state of the action item